#pragma once

#include <QWidget>
#include "ui_chat.h"
#include "qtcpsocket.h"

class chat : public QWidget
{
	Q_OBJECT

public:
	chat(QTcpSocket *s,QWidget *parent = nullptr);
	~chat();
private slots:
	void on_sendButton_clicked();
	void on_clearButton_clicked();
private:
	Ui::chatClass ui;
	QTcpSocket *socket;
};
